package org.jeecg.modules.bid.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 报价记录表
 * @Author:
 * @Date:
 * @Version: V1.0
 */
@Data
@TableName("proc_bid_record")
@ApiModel(value="BidRecord对象", description="报价记录表")
public class BidRecord implements Serializable {
    private static final long serialVersionUID = 1L;

    /**主键*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;

    /**投标id*/
    @ApiModelProperty(value = "投标id")
    private String bidId;

    /**采购id*/
    @ApiModelProperty(value = "采购id")
    private String purchaseId;

    /**供应商ID*/
    @ApiModelProperty(value = "供应商ID")
    private String supplierId;

    /**报价金额*/
    @ApiModelProperty(value = "报价金额")
    private BigDecimal bidPrice;

    /**报价日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "报价日期")
    private Date bidTime;

    /**状态：0待处理 1中标 2未中标 3已撤回*/
    @ApiModelProperty(value = "状态：0待处理 1中标 2未中标 3已撤回")
    private String status;

    /**备注*/
    @ApiModelProperty(value = "备注")
    private String remark;
}
